package com.allenkerr.vo;

import java.util.List;

/**
 * Created by 小柯(Allen Kerr) on 17.6.25 21:57.
 */
public class GlobeData {

    private int code;
    private String msg;
    private Data data;

    @Override
    public String toString() {
        return "GlobeData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        private int current_page;
        private int total_pages;
        private int total_count;
        private List<DataDetail> countries;
        private List<DataDetail> cities;

        @Override
        public String toString() {
            return "Data{" +
                    "current_page=" + current_page +
                    ", total_pages=" + total_pages +
                    ", total_count=" + total_count +
                    ", countries=" + countries +
                    ", cities=" + cities +
                    '}';
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public int getTotal_count() {
            return total_count;
        }

        public void setTotal_count(int total_count) {
            this.total_count = total_count;
        }

        public List<DataDetail> getCountries() {
            return countries;
        }

        public void setCountries(List<DataDetail> countries) {
            this.countries = countries;
        }

        public List<DataDetail> getCities() {
            return cities;
        }

        public void setCities(List<DataDetail> cities) {
            this.cities = cities;
        }
    }

    public static class DataDetail {
        private int id;
        private String cn_name;
        private String en_name;
        private String is_deleted;

        @Override
        public String toString() {
            return "DataDetail{" +
                    "id=" + id +
                    ", cn_name='" + cn_name + '\'' +
                    ", en_name='" + en_name + '\'' +
                    ", is_deleted='" + is_deleted + '\'' +
                    '}';
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCn_name() {
            return cn_name;
        }

        public void setCn_name(String cn_name) {
            this.cn_name = cn_name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public String getIs_deleted() {
            return is_deleted;
        }

        public void setIs_deleted(String is_deleted) {
            this.is_deleted = is_deleted;
        }
    }

}
